package com.shenzhen.horselive.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.flqy.baselibrary.utils.GlideHelper;
import com.shenzhen.horselive.R;
import com.shenzhen.horselive.beans.RedDetailsBean;

import org.jetbrains.annotations.NotNull;

public class RedDetailsAdapter extends BaseQuickAdapter<RedDetailsBean.DataBean, BaseViewHolder> {
    public RedDetailsAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, RedDetailsBean.DataBean dataBean) {
        GlideHelper.loadAdvertImage(dataBean.getHeadImg(),baseViewHolder.getView(R.id.img_user));
        baseViewHolder.setText(R.id.tv_name,dataBean.getNickname())
        .setText(R.id.tv_money,dataBean.getUserAmount()+"元")
        ;

    }
}
